/**
 * Model representing a object that has a person
 */
Ext.define('Sisconsolid.model.HasPerson', {
      extend: 'Sisconsolid.model.HasAddress',
      fields: [
            // id field
            {
                  name: 'idPerson',
                  type: 'int',
                  useNull : true
            },
            {
                  name: 'years',
                  type: 'int',
                  useNull : true
            },
            {
                  name: 'firstName',
                  type: 'string'
            },
            {
                  name: 'lastName',
                  type: 'string'
            },
            {
                  name: 'birthday',
                  type: 'string'
            },
            {
                  name: 'civilStatus',
                  type: 'int'
            },
            {
                  name: 'document',
                  type: 'string'
            },
            {
                  name: 'email',
                  type: 'string'
            },
            {
                  name: 'personalPhone',
                  type: 'string'
            },
            {
                  name: 'workPhone',
                  type: 'string'
            },
            {
                  name: 'sex',
                  type: 'string'
            },
			{
				  name: 'civilStatusDescr',
                  type: 'string',
				  persist: false
			}
      ] 
});